Skip to content

fix a couple bugs for blocks with the constantshim annotation#10618

Merged
riknoll merged 3 commits intomasterfrom
dev/riknoll/math-constants
Jun 2, 2025
Merged

fix a couple bugs for blocks with the constantshim annotation#10618
riknoll merged 3 commits intomasterfrom
dev/riknoll/math-constants

Conversation

@riknoll
Copy link
Copy Markdown
Member

@riknoll riknoll commented May 30, 2025

blocks with the constantShim annotation are used to collect all of the constants on a namespace. for example, all of the Math constants. we associate constants with this block by checking if they have a blockIdentity annotation pointing to the qualified name of the function marked as constantShim

this fixes two bugs:

  • constants that have a block="name" annotation were creating extra blocks in the toolbox. fixed by changing the service to not add auto-generated block ids to constants that have the blockIdentity annotation
  • fixed decompilation of these blocks, which was HTML escaping the qualified name. those should already be HTML safe, so no need to escape again!

@riknoll riknoll requested a review from a team May 30, 2025 17:47
@riknoll riknoll enabled auto-merge (squash) June 2, 2025 21:12
@riknoll riknoll merged commit 89442a7 into master Jun 2, 2025
20 checks passed
@riknoll riknoll deleted the dev/riknoll/math-constants branch June 2, 2025 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants